cmake_minimum_required(VERSION 3.19)
project(base)

set(CMAKE_CXX_STANDARD 14)

include_directories(.)
include_directories(include)

#add_executable(test
#        test.cpp
#        )
#
#add_executable(test2 test2.cpp)

file( GLOB APP_SOURCES ./*.cpp )
foreach( appsourcefile ${APP_SOURCES} )
    get_filename_component( demo_name ${appsourcefile} NAME_WE )
    add_executable( ${demo_name} ${appsourcefile} )
endforeach( appsourcefile ${APP_SOURCES} )
#add_executable(formore formore.cpp)
add_executable(outfile file/outfile.cpp)
add_executable(sumafile file/sumafile.cpp)
add_executable(arrfun2 func/arrfun2.cpp)
add_executable(arrfun1 func/arrfun1.cpp)
add_executable(zzu_test zzu/test.cpp)
add_executable(vectorTest1 zzu/vector/vectorTest1.cpp)
add_executable(queueTest1 zzu/queue/queueTest1.cpp)
add_executable(queueTest2 zzu/queue/queueTest2.cpp)
add_executable(LG2278 zzu/queue/LG2278.cpp)
add_executable(queueTest3 zzu/queue/queueTest3.cpp)
add_executable(settest zzu/set/settest.cpp)
add_executable(stest1 dfs/stest1.cpp)
add_executable(inline func/inline.cpp)
add_executable(firstref quote/firstref.cpp)
add_executable(sceref quote/sceref.cpp)
add_executable(functemp template/functemp.cpp)
add_executable(twotemps template/twotemps.cpp)
add_executable(twotemp template/twotemp.cpp)
add_executable(temptempover template/temptempover.cpp)
add_executable(choices template/choices.cpp)
add_executable(testtemplate template/testtemplate.cpp)
add_executable(file1 namespacetest/file1.cpp)
add_executable(file2 namespacetest/file2.cpp)
add_executable(test10001 namespacetest/test10001.cpp)
add_executable(auto namespacetest/auto.cpp)
add_executable(external namespacetest/external.cpp)
add_executable(support namespacetest/support.cpp)
add_executable(ststic namespacetest/ststic.cpp)
add_executable(newplace namespacetest/newplace.cpp)
add_executable(usestock0 class/usestock0.cpp)
add_executable(stock20 class/stock20.cpp)
add_executable(useStock20 class/useStock20.cpp)
add_executable(namessp namespacetest/namessp.cpp)
add_executable(string new/string.cpp)
add_executable(placenew new/placenew.cpp)
add_executable(usett extend/usett.cpp)
add_executable(test5_1 test5.cpp)
add_executable(studentc reusing/studentc.cpp)
add_executable(uses_stuc reusing/uses_stuc.cpp)
add_executable(stacktp stl/stacktp.cpp)
add_executable(stacktp1 stl/stacktp1.cpp)
add_executable(arraytp stl/arraytp.cpp stl/inserts.cpp)
add_executable(tv friend/tv.cpp friend/use_tv.cpp friend/tvfm.h)
add_executable(queuetp friend/queuetp.cpp)
add_executable(error1 exception/error1.cpp)
add_executable(pairs stl/pairs.cpp)
add_executable(tempmemb stl/tempmemb.cpp)
add_executable(tempmemb2 stl/tempmemb2.cpp)
add_executable(tempparm stl/tempparm.cpp)
add_executable(frnd2tmp stl/frnd2tmp.cpp)
add_executable(tmp2tmp stl/tmp2tmp.cpp)
add_executable(manyfmd stl/manyfmd.cpp)
add_executable(error2 exception/error2.cpp)
add_executable(error3 exception/error3.cpp)
add_executable(exc_mean exception/exc_mean.cpp)
add_executable(error5 exception/error5.cpp)
add_executable(newexcp exception/newexcp.cpp)
add_executable(use_sales exception/use_sales.cpp)
add_executable(rtti1 exception/rtti1.cpp)
add_executable(rtti2 exception/rtti2.cpp)
add_executable(constcast exception/constcast.cpp)
add_executable(str1 string/str1.cpp)
add_executable(strfile string/strfile.cpp)
add_executable(hangman string/hangman.cpp)
add_executable(str2 string/str2.cpp)
add_executable(vect1 stl/vect1.cpp)
add_executable(vect2 stl/vect2.cpp)
add_executable(vect3 stl/vect3.cpp)
add_executable(copyit stl/copyit.cpp)
add_executable(inserts stl/inserts.cpp)
add_executable(list stl/list.cpp)
add_executable(setops stl/setops.cpp)
add_executable(multimap stl/multimap.cpp)
add_executable(functor stl/functor.cpp)
add_executable(funadap stl/funadap.cpp)
add_executable(strgst1 stl/strgst1.cpp)
add_executable(listrmv stl/listrmv.cpp)
add_executable(usealgo stl/usealgo.cpp)
add_executable(valvect stl/valvect.cpp)
add_executable(vslice stl/vslice.cpp)
add_executable(ilist stl/ilist.cpp)
add_executable(write io/write.cpp)
add_executable(defaults io/defaults.cpp)
add_executable(manip io/manip.cpp)
add_executable(width io/width.cpp)
add_executable(fill io/fill.cpp)
add_executable(precise io/precise.cpp)
add_executable(showpt io/showpt.cpp)
add_executable(setf io/setf.cpp)
add_executable(iomanip io/iomanip.cpp)
add_executable(check_it io/check_it.cpp)
add_executable(cinexcp io/cinexcp.cpp)
add_executable(get_gun io/get_gun.cpp)
add_executable(peeker io/peeker.cpp)
add_executable(truncate io/truncate.cpp)
add_executable(filleio io/filleio.cpp)
add_executable(count io/count.cpp)
add_executable(append io/append.cpp)
add_executable(strout io/strout.cpp)
add_executable(strin io/strin.cpp)